//
//  RulesManager.h
//  Pennyworth
//
//  Created by Chris Karr on 7/27/08.
//  Copyright 2008 Northwestern University. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "RulePredicateEditor.h"

@interface RulesManager : NSObject 
{
	NSMutableArray * rules;
	IBOutlet RulePredicateEditor * ruleEditor;
	IBOutlet NSArrayController * rulesController;
	
	NSArrayController * priorPredictions;
}

@property(retain) NSMutableArray * rules;
@property(retain) NSArrayController * priorPredictions;

- (IBAction) add:(id) sender;
- (IBAction) saveRule:(id) sender;

+ (RulesManager *) sharedRulesManager;
- (NSString *) labelForKey:(NSString *) key forFeatures:(NSArray *) features;

@end
